package com.atguigu.dao;

import com.atguigu.bean.User;

/**
 * @Author zhangchunsheng
 * @CreateTime: 2025/01/08
 */
public interface UserDao {

    /**
    * @Author: zhangchunsheng
    * @Date: 2025/1/8 14:04
     * 登录功能 SELECT * FROM sys_user WHERE username = ? AND `password` = ?
    */
    public User selectUserByUsernameAndPassword(User user) throws Exception;

    /**
    * @Author: zhangchunsheng
    * @Date: 2025/1/8 15:58
     * 添加user信息:INSERT INTO sys_user(username,PASSWORD,nickname) VALUES(?,?,?)
    */
    void insertUser(User user) throws Exception;

    /**
    * @Author: zhangchunsheng
    * @Date: 2025/1/10 16:39
     * 修改密码
    */
    void updatePwd(User user) throws Exception;



}
